package org.example.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
public class UserDo {

    @RequestMapping("user")
    String hello(HttpServletRequest request) {
        int port = request.getLocalPort();
        return "hello : " + port;
    }
}